import { Connection } from 'mongoose';
import { ItemSchemas } from './item.schemas';

export const itemProviders = [
  {
    provide: 'ITEM_MODEL',
    useFactory: (connection: Connection) =>
      connection.model('Item', ItemSchemas),
    inject: ['DATABASE_CONNECTION']
  }
];
